export const replaceArrayEl = (arr, index, newEl) => {
    return [...arr.slice(0, index), newEl, ...arr.slice(index + 1)]
}